package com.zut.service;

import com.zut.entity.Student;

import java.util.List;
import java.util.Map;

/**
 * 学生业务接口
 */
public interface StudentService {
    void addStudent(Student stu);

    List<Map<String, Object>> findAllStudent();

    List<Map<String, Object>> findStudentsLikeName(String name);

    List<Map<String, Object>> findStudentsByClassName(String className);

    void updateClassesById(String stuId, String clsId);

    boolean deleteStudent(String stuId);

    List<Student> findStudentsByTid(String tid, int id);

    Student login(String sid, String password);

    void updatePassword(String id, String newPwd);

    void updatePhoneNum(String id, String newPhoneNum);

    void updateAddress(String id, String newAddress);
}
